/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * TaskInfo2.java
 *
 * Created on Jul 21, 2011, 3:21:52 PM
 */
package javadatabasegui;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 *
 * @author Carlos@GaTech
 */
public class TaskInfo extends javax.swing.JFrame {
    String userEmail;
    String taskName;
    int projectID;
    String msName;
    Connection conn;
    String M_Name;
    ArrayList Emails = new ArrayList();
    String[] NewEmails = null;
    /** Creates new form TaskInfo2 */
    public TaskInfo(String Uemail, int PID, String TName, String Mname, Connection Conn) {
        userEmail = Uemail;
        taskName = TName;
        projectID = PID;
        conn = Conn;  
        M_Name = Mname;
        
        initComponents();
        DisplayInfo();
        
    }

    private void DisplayInfo() {
         Mile_name.setText(M_Name);
         String F_Name;
         String L_Name;
         String Description;
         String Due_Date;
         String Email;
         int Status;         
         
        try{           
            Statement stmt = conn.createStatement();
            ResultSet rs = null;            
            System.err.println(userEmail);
            if (stmt.execute("SELECT U_Email FROM cs4400_Group_14.Tasks WHERE T_Name = \"" + taskName + "\" AND " +
                    "PID = \"" + projectID + "\" AND M_Name = \"" + M_Name + "\"")){
                rs = stmt.getResultSet();
            }
            rs.next();
            Email = rs.getString("U_Email");
            rs = null;
            
            if (stmt.execute("SELECT F_Name, L_Name FROM cs4400_Group_14.Users WHERE Email = \"" + Email + "\"")){
                rs = stmt.getResultSet();
            }          
            rs.next();
            F_Name = rs.getString("F_Name");    
            L_Name = rs.getString("L_Name");
            
            choice.add(F_Name + " " + L_Name);  
            Emails.add(Email);
            rs = null;
            if(stmt.execute("SELECT F_Name, L_Name, Users.Email " 
                    + "FROM cs4400_Group_14.Users, cs4400_Group_14.User_WP "
                    + "WHERE User_WP.Email = Users.Email AND PID = \""+projectID+"\" AND"
                    + " Admin = 0 AND Users.Email != \""+Email+"\"")){
            rs = stmt.getResultSet();
        }
            
            for(int i = 0; rs.next(); i++){
                F_Name = rs.getString("F_Name");    
                L_Name = rs.getString("L_Name");
                Email = rs.getString("Email");
                choice.add(F_Name + " " + L_Name);
                Emails.add(Email);
                               
                
            }         
                                          
            TasksNames.setText(taskName);
            
        }catch(SQLException e){
            System.err.println(e.getMessage());
            }
        if(taskName.equals("New Task Name")){
            TasksNames.setText(taskName);
        try{
            Statement stmt = conn.createStatement();
            ResultSet rs = null;
            if(stmt.execute("SELECT F_Name, L_Name, Users.Email " 
                    + "FROM cs4400_Group_14.Users, cs4400_Group_14.User_WP "
                    + "WHERE User_WP.Email = Users.Email AND PID = \""+projectID+"\" AND"
                    + " Admin = 0")){
            rs = stmt.getResultSet();
        
           
            for(int i = 0; rs.next(); i++){
                F_Name = rs.getString("F_Name");    
                L_Name = rs.getString("L_Name");
                Email = rs.getString("Email");
                Emails.add(Email);
                choice.add(F_Name + " " + L_Name);                              
            }   
            }
           
            }catch(SQLException e){
            System.err.println(e.getMessage());
            }
        }
        
            try{
            Statement stmt = conn.createStatement();
            ResultSet rs = null;
            if  (stmt.execute("SELECT T_Desc, Due_Date, Status FROM cs4400_Group_14.Tasks WHERE PID = \"" + projectID + "\"" +
                    "AND T_Name = \"" + taskName + "\" AND M_Name = \"" + M_Name+ "\""));
            rs = stmt.getResultSet();
            rs.next();
            Description = rs.getString("T_Desc");            
            Due_Date = rs.getString("Due_Date");
            Status = rs.getInt("Status");
            
            DescText.setText(Description);
            DueDates.setText(Due_Date);
            if (Status == 1)
                closed.setSelected(false);
            else
                closed.setSelected(true);
            }catch(SQLException e){
            System.err.println(e.getMessage());
            }
            }
       
         /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel3 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        Mile_name = new javax.swing.JLabel();
        task_name = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        DescText = new javax.swing.JTextPane();
        jScrollPane2 = new javax.swing.JScrollPane();
        DueDates = new javax.swing.JTextPane();
        jScrollPane3 = new javax.swing.JScrollPane();
        TasksNames = new javax.swing.JTextPane();
        closed = new javax.swing.JCheckBox();
        choice = new java.awt.Choice();
        label1 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane4.setViewportView(jTextArea1);

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        jPanel1.setBackground(new java.awt.Color(230, 174, 39));

        jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 20));
        jLabel2.setText("Task Info");

        jLabel3.setFont(new java.awt.Font("Times New Roman", 0, 14));
        jLabel3.setText("Milestone");

        jLabel4.setFont(new java.awt.Font("Times New Roman", 0, 14));
        jLabel4.setText("Name");

        jLabel5.setFont(new java.awt.Font("Times New Roman", 0, 14));
        jLabel5.setText("Description");

        jLabel6.setFont(new java.awt.Font("Times New Roman", 0, 14));
        jLabel6.setText("Due Date");

        jLabel7.setFont(new java.awt.Font("Times New Roman", 0, 14));
        jLabel7.setText("Assigned to ");

        jLabel8.setFont(new java.awt.Font("Times New Roman", 0, 14));
        jLabel8.setText("Closed?");

        jPanel4.setBackground(new java.awt.Color(204, 204, 204));

        jButton1.setText("Save");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap(478, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addGap(28, 28, 28))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jButton1)
                .addContainerGap(22, Short.MAX_VALUE))
        );

        Mile_name.setFont(new java.awt.Font("Times New Roman", 1, 18));

        jScrollPane1.setViewportView(DescText);

        DueDates.setText("yyyy-mm-dd");
        jScrollPane2.setViewportView(DueDates);

        jScrollPane3.setViewportView(TasksNames);

        closed.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                closedActionPerformed(evt);
            }
        });

        label1.setFont(new java.awt.Font("Times New Roman", 0, 14));
        label1.setForeground(new java.awt.Color(0, 51, 255));
        label1.setText("<html><U>MilestoneInfo</U></html>");
        label1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        label1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                label1MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 299, Short.MAX_VALUE)
                .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel4)
                            .addComponent(jLabel5))
                        .addGap(54, 54, 54)
                        .addComponent(task_name))
                    .addComponent(jLabel3)
                    .addComponent(jLabel6)
                    .addComponent(jLabel7)
                    .addComponent(jLabel8))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(choice, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Mile_name, javax.swing.GroupLayout.PREFERRED_SIZE, 347, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 381, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(closed, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(43, Short.MAX_VALUE))
            .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(17, 17, 17)
                        .addComponent(jLabel3))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Mile_name, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(12, 12, 12)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel4)
                        .addComponent(task_name))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(16, 16, 16)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(36, 36, 36)
                        .addComponent(jLabel7))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addComponent(choice, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(closed, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel1.setBackground(new java.awt.Color(255, 255, 255));
        jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 14));
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Task Info - Perform Design Review");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel1))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
    String NewTask = TasksNames.getText();
    String NewDesc = DescText.getText();
    String NewDue = DueDates.getText();
   
    int pos = choice.getSelectedIndex();
    boolean Status = closed.isSelected();
    int NewStatus;
    
    if (Status == true)
        NewStatus = 0;
    else
        NewStatus = 1;   
    
    String Email = (String) Emails.get(pos);
    Date Dt1 = null;
    try{
        Statement stmt = conn.createStatement();
        ResultSet rs = null;
        if (stmt.execute("SELECT Due_Date FROM `cs4400_Group_14`.`Milestones` "
                + "WHERE PID = \""+ projectID + "\" AND M_Name = \"" + M_Name + "\""))
        {
            rs = stmt.getResultSet();   
            rs.next();
            Dt1 = rs.getDate("Due_Date");
        }
    }catch(SQLException e){
        System.err.println("Error in Task DD calc");
        System.err.println(e.getMessage());
    }
    
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    Date newDate = null;
        try {
            newDate = sdf.parse(NewDue);
        } catch (ParseException ex) {
            Logger.getLogger(TaskInfo.class.getName()).log(Level.SEVERE, null, ex);
        }
    
    if (Dt1.before(newDate) && Dt1 != newDate) {
         JOptionPane.showMessageDialog(null, "Cannot enter task due date after milestone due date.");              
                return;
    }
    
     try{
            Statement stmt = conn.createStatement();  
           String NewuserEmail = Email;
        Date Dt = null;
        try {
            Dt = sdf.parse(NewDue);
        }catch (ParseException e){ 
            JOptionPane.showMessageDialog(null, "Invalid Date Format.");
        return;
        }
        System.out.println("Dt= " + Dt);
        if (!sdf.format(Dt).equals(NewDue)) {
            JOptionPane.showMessageDialog(null, "Invalid Date Format.");
            return;
        }else{ 
            if (!taskName.equals("New Task Name") && !NewTask.equals("")){
                    stmt.execute("UPDATE cs4400_Group_14.Tasks SET U_Email=\"" + NewuserEmail + "\", "+
                    "Status =\"" + NewStatus + "\", T_Desc = \"" + NewDesc + "\", Due_Date = \"" + NewDue + "\", "+
                    "T_Name =\"" + NewTask + "\" WHERE PID = \"" + projectID + "\" AND M_Name = \"" + M_Name + "\" "+
                    "AND T_Name = \"" + taskName + "\"");
                 
                
                                           } 
                
            
             else if(taskName.equals("New Task Name") && !NewTask.equals("")){
                    stmt.execute("INSERT INTO cs4400_Group_14.Tasks (U_Email, T_Name, T_Desc, Status, M_Name, PID, Due_Date) "+
                    "VALUES (\"" + NewuserEmail + "\", \"" + NewTask + "\", \"" + NewDesc + "\", \"" + NewStatus + "\", " + 
                     "\"" + M_Name + "\", \"" + projectID + "\", \"" + NewDue + "\")");
         }  else {
                    JOptionPane.showMessageDialog(null, "Cannot Create/Update Task Without Task Name.");
            }
      
            
     
        }}
        catch(SQLException e){
            System.err.println(e.getMessage());
            
            }
   
    
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton1ActionPerformed

    private void closedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closedActionPerformed
       
            
    }//GEN-LAST:event_closedActionPerformed

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        new MilestoneInfo(userEmail, projectID, conn, M_Name).setVisible(true);
                 this.dispose();
    }//GEN-LAST:event_formWindowClosing

    private void label1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_label1MouseClicked
        new MilestoneInfo(userEmail, projectID, conn, M_Name).setVisible(true);
            this.dispose();
    }//GEN-LAST:event_label1MouseClicked

    /**
     * @param args the command line arguments
     */
  //  public static void main(String args[]) {
     //   java.awt.EventQueue.invokeLater(new Runnable() {

         //   public void run() {
           //     new TaskInfo2().setVisible(true);
          //  }
       // });
   // }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextPane DescText;
    private javax.swing.JTextPane DueDates;
    private javax.swing.JLabel Mile_name;
    private javax.swing.JTextPane TasksNames;
    private java.awt.Choice choice;
    private javax.swing.JCheckBox closed;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JLabel label1;
    private javax.swing.JLabel task_name;
    // End of variables declaration//GEN-END:variables
}
